Skip to content

Choose default fragment charges independently of atom order - #1517

Open
zarkoivkovicc wants to merge 1 commit into
grimme-lab:mainfrom
zarkoivkovicc:canonical-fragment-charge
Open

zarkoivkovicc wants to merge 1 commit into
grimme-lab:mainfrom
zarkoivkovicc:canonical-fragment-charge

Conversation

@zarkoivkovicc

Copy link
Copy Markdown
Contributor

Currently, the charges on fragments, and thus the forces and energies depend on atom order, as the code simply chooses the first fragment to assign the charge. This should remove this unwanted behavior.

Signed-off-by: Zarko Ivkovic <zivkovic@ethz.ch>

@thfroitzheim thfroitzheim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see the problem, but I would prefer not to introduce a different automatic heuristic for assigning the total charge to one fragment. For now, could we require explicit fragment charges via the second line of .CHRG whenever more than one disconnected fragment is detected? If those fragment charges are missing, the setup should fail cleanly with an error message. I am also open to adding a flag for this in the CLI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants